import Vue from 'vue';
import App from './App.vue';
import { DatePicker, Select, Option } from 'element-ui';
import $loading from './components/Loading/loading';


Vue.config.productionTip = false

Vue.use($loading);
Vue.component(DatePicker.name, DatePicker);
Vue.component(Select.name, Select);
Vue.component(Option.name, Option);

import router from './router/index';
import store from '@/store/index';


new Vue({
    render: h => h(App),
    router,
    store,
    beforeCreate() {
        Vue.prototype.$bus = this;
    }
}).$mount('#app')